# -*- coding: utf-8 -*-
<%inherit file="base.mako"/>

<%namespace name="room_comps" file="/rooms/components.mako"/>
<%namespace name="building_comps" file="/buildings/components.mako"/>

<h1>
Buildings
</h1>

<table>
	<tr>
		<th>Label</th>
		<th>Rooms</th>
	</tr>
%for building in c.buildings:
	<tr>
	    <td>
	    	${building_comps.link_to(building)}
		</td>
		<td>
		% for room in building.rooms:
			${room_comps.link_to(room)}, 
		% endfor
		</td>
	</tr>
%endfor
</table>